<template>
    <KLineComponent :num="data"/>
    <KLinePlayService :onEvent="receiveNum"  />
</template>

<script>
import KLineComponent from './base/KLineComponent.vue';
import KLinePlayService from './operate/KLinePlayService.vue';

export default {
    data() {
        return {
            data:0,
        }
    },
    components: {
        KLineComponent,
        KLinePlayService,
    },
    methods: {
        receiveNum(val) {
            console.log("接收数据" + val)
            this.data = val;
        },
    }
}
</script>

<style scoped>

</style>
